<html>
    <head>
        <title><g:layoutTitle default="Grails" /></title>
        <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
        <link rel="shortcut icon" href="${resource(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
        <g:layoutHead />
        <g:javascript library="application" />
        <g:javascript library="jquery" plugin="jquery"/>
    </head>
    <body>
        <div id="spinner" class="spinner" style="display:none;">
            <img src="${resource(dir:'images',file:'logo.jpg')}" alt="Spinner" />
        </div>
		<img src="${resource(dir:'images', file: 'goldChampion_Logo.png')}" />
		
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link controller="inscricao" action="listagem_campeonato">Inscri&ccedil;&atilde;o</g:link></span>
            <span class="menuButton"><g:link controller="usuario" action="create">Usu&aacute;rio</g:link></span>
            <span class="menuButton"><g:link controller="time" action="create">Time</g:link></span>
            <span class="menuButton"><g:link controller="regra" action="create">Regra</g:link></span>
            <span class="menuButton"><g:link controller="penalidade" action="create">Penalidade</g:link></span>
            <span class="menuButton"><g:link controller="jogo" action="create">Jogo</g:link></span>
            <span class="menuButton"><g:link controller="campeonato" action="create">Campeonato</g:link></span>
            <span class="menuButton"><g:link controller="tipoJogo" action="create">Tipo de Jogo</g:link></span>
	    <span class="menuButton"><g:link controller="premiarGanhadores" action="create">Premiação</g:link></span>
			
			<sec:ifLoggedIn>
				<span class="menuButton">
					<g:link controller="usuario" action="usuariologado">Usu&aacute;rio Logado: <sec:loggedInUserInfo field="username" /></g:link>
					(<g:link controller="logout">sair</g:link>)
				</span>
			</sec:ifLoggedIn>
			
			<sec:ifNotLoggedIn>
				<span class="menuButton">
					<g:link controller="login">Login</g:link>
				</span>
			</sec:ifNotLoggedIn>
        </div>
        <g:layoutBody />
        <br><br>
        
 
		<div id="footer" align="center">
			Gold<b>Champion</b> - Implementado em <a href="http://www.grails.org" target="_blank">Grails</a>.
			<br /><img src="${resource(dir:'images', file: 'logo_fa7.jpg')}" />
		</div>

    </body>
</html>
